<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/entity/BudgetValue.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/d59/BudgetValue_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BudgetValue.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d8/d59/BudgetValue_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * BudgetValue.java</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="../../db/dec/namespacenars_1_1entity.html">   21</a></span>&#160;<span class="keyword">package </span>nars.entity;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.data.BudgetStruct;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d9/d79/namespacenars_1_1inference.html">inference</a>.*;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../db/d64/namespacenars_1_1io.html">io</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">   31</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> <span class="keyword">implements</span> BudgetStruct  {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4109064897f66d5af7ce72aa93c0bdaf.html#a4109064897f66d5af7ce72aa93c0bdaf">   34</a></span>&#160;    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">char</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4109064897f66d5af7ce72aa93c0bdaf.html#a4109064897f66d5af7ce72aa93c0bdaf">MARK</a> = <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a42009f5202d1b120b098593f7b48dbad.html#a42009f5202d1b120b098593f7b48dbad">BUDGET_VALUE_MARK</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a6bbd9df3140acd87389ada4b0c4fea2b.html#a6bbd9df3140acd87389ada4b0c4fea2b">   36</a></span>&#160;    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">char</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a6bbd9df3140acd87389ada4b0c4fea2b.html#a6bbd9df3140acd87389ada4b0c4fea2b">SEPARATOR</a> = <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a303071a44dc2adfc5d1b0a51058b9eb4.html#a303071a44dc2adfc5d1b0a51058b9eb4">VALUE_SEPARATOR</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae8f273fe6b1e810e75b51ea83d308517.html#ae8f273fe6b1e810e75b51ea83d308517">   38</a></span>&#160;    <span class="keyword">protected</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae8f273fe6b1e810e75b51ea83d308517.html#ae8f273fe6b1e810e75b51ea83d308517">priority</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8225fd92c20794512e5fbbc3049a1052.html#a8225fd92c20794512e5fbbc3049a1052">   45</a></span>&#160;    <span class="keyword">protected</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8225fd92c20794512e5fbbc3049a1052.html#a8225fd92c20794512e5fbbc3049a1052">durability</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a317db5d38ca2192b6cf3fbdf1cf2f4b6.html#a317db5d38ca2192b6cf3fbdf1cf2f4b6">   47</a></span>&#160;    <span class="keyword">protected</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a317db5d38ca2192b6cf3fbdf1cf2f4b6.html#a317db5d38ca2192b6cf3fbdf1cf2f4b6">quality</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a9522c73cb54d65b0d81a27b07ee4b4b0.html#a9522c73cb54d65b0d81a27b07ee4b4b0">   52</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a9522c73cb54d65b0d81a27b07ee4b4b0.html#a9522c73cb54d65b0d81a27b07ee4b4b0">BudgetValue</a>() {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        priority = 0.01f;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        durability = 0.01f;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        quality = 0.01f;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a949b9dc84ec11f6d00dfb23f27599f85.html#a949b9dc84ec11f6d00dfb23f27599f85">   64</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a949b9dc84ec11f6d00dfb23f27599f85.html#a949b9dc84ec11f6d00dfb23f27599f85">BudgetValue</a>(<span class="keywordtype">float</span> p, <span class="keywordtype">float</span> d, <span class="keywordtype">float</span> q) {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        priority = p;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        durability = d;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        quality = q;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a268fa1fabe6e71de9b9bb07bb5d506ee.html#a268fa1fabe6e71de9b9bb07bb5d506ee">   74</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a268fa1fabe6e71de9b9bb07bb5d506ee.html#a268fa1fabe6e71de9b9bb07bb5d506ee">BudgetValue</a>(BudgetStruct v) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        priority = v.getPriority();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        durability = v.getDurability();</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        quality = v.getQuality();</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3.html#a1e7b6826531f03f792f3516ce0e97ac3">   84</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3.html#a1e7b6826531f03f792f3516ce0e97ac3">getPriority</a>() {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae8f273fe6b1e810e75b51ea83d308517.html#ae8f273fe6b1e810e75b51ea83d308517">priority</a> ;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb.html#ac2cb3449a15125e5f0e4165aeee0befb">   92</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb.html#ac2cb3449a15125e5f0e4165aeee0befb">setPriority</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        priority= v;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    }</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3.html#a088e64163126211239b6afd25a9cdca3">  100</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3.html#a088e64163126211239b6afd25a9cdca3">incPriority</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        priority= <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2.html#a24093a77b49f21322e62c9bed7ff5ee2">or</a>(priority, v);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">  108</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">decPriority</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        priority= <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a35ac262407303cdf8d11f7892f9a3a03.html#a35ac262407303cdf8d11f7892f9a3a03">and</a>(priority, v);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6.html#ab0e0dc2172d3fab6390670acb68da1a6">  116</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6.html#ab0e0dc2172d3fab6390670acb68da1a6">getDurability</a>() {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8225fd92c20794512e5fbbc3049a1052.html#a8225fd92c20794512e5fbbc3049a1052">durability</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b.html#ab72bce41fd8a1512fc8baa07ed93fc1b">  124</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b.html#ab72bce41fd8a1512fc8baa07ed93fc1b">setDurability</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        durability= v;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    }</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c.html#a0ea64f8c378c0573d61182538137e21c">  132</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c.html#a0ea64f8c378c0573d61182538137e21c">incDurability</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        durability= <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2.html#a24093a77b49f21322e62c9bed7ff5ee2">or</a>(durability, v);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a.html#af94675e7515bd0efd94b5ee787eebc4a">  140</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a.html#af94675e7515bd0efd94b5ee787eebc4a">decDurability</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        durability= <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a35ac262407303cdf8d11f7892f9a3a03.html#a35ac262407303cdf8d11f7892f9a3a03">and</a>(durability, v);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1.html#ae48fee1252f685c6ce2033bb855d13e1">  148</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1.html#ae48fee1252f685c6ce2033bb855d13e1">getQuality</a>() {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a317db5d38ca2192b6cf3fbdf1cf2f4b6.html#a317db5d38ca2192b6cf3fbdf1cf2f4b6">quality</a> ;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b.html#ab134287bfbdfe703501697c5f9eac50b">  156</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b.html#ab134287bfbdfe703501697c5f9eac50b">setQuality</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        quality= v;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac9b1209cf554bce81c5c3d9524713ec6.html#ac9b1209cf554bce81c5c3d9524713ec6">  164</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac9b1209cf554bce81c5c3d9524713ec6.html#ac9b1209cf554bce81c5c3d9524713ec6">incQuality</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        quality= <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2.html#a24093a77b49f21322e62c9bed7ff5ee2">or</a>(quality, v);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a3978ed6ab0d94c89d54edf75b4340553.html#a3978ed6ab0d94c89d54edf75b4340553">  172</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a3978ed6ab0d94c89d54edf75b4340553.html#a3978ed6ab0d94c89d54edf75b4340553">decQuality</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        quality= <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a35ac262407303cdf8d11f7892f9a3a03.html#a35ac262407303cdf8d11f7892f9a3a03">and</a>(quality, v);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f.html#a4fdeae08389c60a4d89bc0b85a92848f">  180</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f.html#a4fdeae08389c60a4d89bc0b85a92848f">merge</a>(BudgetStruct that) {</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a64bec0b466ef31bc3150de23f0623309.html#a64bec0b466ef31bc3150de23f0623309">merge</a>(<span class="keyword">this</span>, that);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af414899759992288edbba78d7457c534.html#af414899759992288edbba78d7457c534">  188</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af414899759992288edbba78d7457c534.html#af414899759992288edbba78d7457c534">summary</a>() {</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a7649e37bb61cac9b8a2601fdff3a5f7a.html#a7649e37bb61cac9b8a2601fdff3a5f7a">aveGeo</a>(priority, durability, quality);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">  198</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">aboveThreshold</a>() {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keywordflow">return</span> (<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af414899759992288edbba78d7457c534.html#af414899759992288edbba78d7457c534">summary</a>() &gt;= <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">Parameters</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_afd449c49d1181b89c64e84f7a1b742a9.html#afd449c49d1181b89c64e84f7a1b742a9">BUDGET_THRESHOLD</a>);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    @Override</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8892e580ae0ffd34d9b59a7a3b463a68.html#a8892e580ae0ffd34d9b59a7a3b463a68">  207</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8892e580ae0ffd34d9b59a7a3b463a68.html#a8892e580ae0ffd34d9b59a7a3b463a68">toString</a>() {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>+ MARK + priority + SEPARATOR + durability + SEPARATOR + quality  + <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4109064897f66d5af7ce72aa93c0bdaf.html#a4109064897f66d5af7ce72aa93c0bdaf">MARK</a>;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0.html#aff75d0d4fed143961e843d2959687fb0">  215</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0.html#aff75d0d4fed143961e843d2959687fb0">toStringBrief</a>() {</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>+MARK + priority  + SEPARATOR + durability  + SEPARATOR + quality + <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4109064897f66d5af7ce72aa93c0bdaf.html#a4109064897f66d5af7ce72aa93c0bdaf">MARK</a>;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;}</div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b_html_ab134287bfbdfe703501697c5f9eac50b"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b.html#ab134287bfbdfe703501697c5f9eac50b">nars.entity.BudgetValue.setQuality</a></div><div class="ttdeci">void setQuality(float v)</div><div class="ttdoc">Change quality value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00156">BudgetValue.java:156</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1_html_ae48fee1252f685c6ce2033bb855d13e1"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1.html#ae48fee1252f685c6ce2033bb855d13e1">nars.entity.BudgetValue.getQuality</a></div><div class="ttdeci">float getQuality()</div><div class="ttdoc">Get quality value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00148">BudgetValue.java:148</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a4109064897f66d5af7ce72aa93c0bdaf_html_a4109064897f66d5af7ce72aa93c0bdaf"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4109064897f66d5af7ce72aa93c0bdaf.html#a4109064897f66d5af7ce72aa93c0bdaf">nars.entity.BudgetValue.MARK</a></div><div class="ttdeci">static final char MARK</div><div class="ttdoc">The character that marks the two ends of a budget value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00034">BudgetValue.java:34</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ac9b1209cf554bce81c5c3d9524713ec6_html_ac9b1209cf554bce81c5c3d9524713ec6"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac9b1209cf554bce81c5c3d9524713ec6.html#ac9b1209cf554bce81c5c3d9524713ec6">nars.entity.BudgetValue.incQuality</a></div><div class="ttdeci">void incQuality(float v)</div><div class="ttdoc">Increase quality value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00164">BudgetValue.java:164</a></div></div>
<div class="ttc" id="namespacenars_1_1io_html"><div class="ttname"><a href="../../db/d64/namespacenars_1_1io.html">nars.io</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d26/ExperienceReader_8java_source.html#l00021">ExperienceReader.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3_html_a088e64163126211239b6afd25a9cdca3"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3.html#a088e64163126211239b6afd25a9cdca3">nars.entity.BudgetValue.incPriority</a></div><div class="ttdeci">void incPriority(float v)</div><div class="ttdoc">Increase priority value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00100">BudgetValue.java:100</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a6bbd9df3140acd87389ada4b0c4fea2b_html_a6bbd9df3140acd87389ada4b0c4fea2b"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a6bbd9df3140acd87389ada4b0c4fea2b.html#a6bbd9df3140acd87389ada4b0c4fea2b">nars.entity.BudgetValue.SEPARATOR</a></div><div class="ttdeci">static final char SEPARATOR</div><div class="ttdoc">The character that separates the factors in a budget value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00036">BudgetValue.java:36</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_html"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">nars.storage.Memory.Parameters</a></div><div class="ttdoc">Collected system parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01069">Memory.java:1069</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a_html_af94675e7515bd0efd94b5ee787eebc4a"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a.html#af94675e7515bd0efd94b5ee787eebc4a">nars.entity.BudgetValue.decDurability</a></div><div class="ttdeci">void decDurability(float v)</div><div class="ttdoc">Decrease durability value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00140">BudgetValue.java:140</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a3978ed6ab0d94c89d54edf75b4340553_html_a3978ed6ab0d94c89d54edf75b4340553"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a3978ed6ab0d94c89d54edf75b4340553.html#a3978ed6ab0d94c89d54edf75b4340553">nars.entity.BudgetValue.decQuality</a></div><div class="ttdeci">void decQuality(float v)</div><div class="ttdoc">Decrease quality value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00172">BudgetValue.java:172</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a9522c73cb54d65b0d81a27b07ee4b4b0_html_a9522c73cb54d65b0d81a27b07ee4b4b0"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a9522c73cb54d65b0d81a27b07ee4b4b0.html#a9522c73cb54d65b0d81a27b07ee4b4b0">nars.entity.BudgetValue.BudgetValue</a></div><div class="ttdeci">BudgetValue()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00052">BudgetValue.java:52</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ae8f273fe6b1e810e75b51ea83d308517_html_ae8f273fe6b1e810e75b51ea83d308517"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae8f273fe6b1e810e75b51ea83d308517.html#ae8f273fe6b1e810e75b51ea83d308517">nars.entity.BudgetValue.priority</a></div><div class="ttdeci">float priority</div><div class="ttdoc">The relative share of time resource to be allocated. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00038">BudgetValue.java:38</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b_html_ab72bce41fd8a1512fc8baa07ed93fc1b"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b.html#ab72bce41fd8a1512fc8baa07ed93fc1b">nars.entity.BudgetValue.setDurability</a></div><div class="ttdeci">void setDurability(float v)</div><div class="ttdoc">Change durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00124">BudgetValue.java:124</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58_html_ae83b822f3bab4c1831e94d72fc770f58"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">nars.entity.BudgetValue.aboveThreshold</a></div><div class="ttdeci">boolean aboveThreshold()</div><div class="ttdoc">Whether the budget should get any processing at all. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00198">BudgetValue.java:198</a></div></div>
<div class="ttc" id="namespacenars_1_1inference_html"><div class="ttname"><a href="../../d9/d79/namespacenars_1_1inference.html">nars.inference</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00021">BudgetFunctions.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0_html_aff75d0d4fed143961e843d2959687fb0"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0.html#aff75d0d4fed143961e843d2959687fb0">nars.entity.BudgetValue.toStringBrief</a></div><div class="ttdeci">String toStringBrief()</div><div class="ttdoc">Briefly display the BudgetValue. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00215">BudgetValue.java:215</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_afd449c49d1181b89c64e84f7a1b742a9_html_afd449c49d1181b89c64e84f7a1b742a9"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_afd449c49d1181b89c64e84f7a1b742a9.html#afd449c49d1181b89c64e84f7a1b742a9">nars.storage.Memory.Parameters.BUDGET_THRESHOLD</a></div><div class="ttdeci">static final float BUDGET_THRESHOLD</div><div class="ttdoc">The budget threshold rate for task to be accepted. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01098">Memory.java:1098</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_af414899759992288edbba78d7457c534_html_af414899759992288edbba78d7457c534"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af414899759992288edbba78d7457c534.html#af414899759992288edbba78d7457c534">nars.entity.BudgetValue.summary</a></div><div class="ttdeci">float summary()</div><div class="ttdoc">To summarize a BudgetValue into a single number in [0, 1]. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00188">BudgetValue.java:188</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a303071a44dc2adfc5d1b0a51058b9eb4_html_a303071a44dc2adfc5d1b0a51058b9eb4"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a303071a44dc2adfc5d1b0a51058b9eb4.html#a303071a44dc2adfc5d1b0a51058b9eb4">nars.io.Symbols.VALUE_SEPARATOR</a></div><div class="ttdeci">static final char VALUE_SEPARATOR</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00040">Symbols.java:40</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_html"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols.html">nars.io.Symbols</a></div><div class="ttdoc">The ASCII symbols used in I/O. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00026">Symbols.java:26</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6_html_ab0e0dc2172d3fab6390670acb68da1a6"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6.html#ab0e0dc2172d3fab6390670acb68da1a6">nars.entity.BudgetValue.getDurability</a></div><div class="ttdeci">float getDurability()</div><div class="ttdoc">Get durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00116">BudgetValue.java:116</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c_html_a0ea64f8c378c0573d61182538137e21c"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c.html#a0ea64f8c378c0573d61182538137e21c">nars.entity.BudgetValue.incDurability</a></div><div class="ttdeci">void incDurability(float v)</div><div class="ttdoc">Increase durability value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00132">BudgetValue.java:132</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a8892e580ae0ffd34d9b59a7a3b463a68_html_a8892e580ae0ffd34d9b59a7a3b463a68"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8892e580ae0ffd34d9b59a7a3b463a68.html#a8892e580ae0ffd34d9b59a7a3b463a68">nars.entity.BudgetValue.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdoc">Fully display the BudgetValue. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00207">BudgetValue.java:207</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1UtilityFunctions_a35ac262407303cdf8d11f7892f9a3a03_html_a35ac262407303cdf8d11f7892f9a3a03"><div class="ttname"><a href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a35ac262407303cdf8d11f7892f9a3a03.html#a35ac262407303cdf8d11f7892f9a3a03">nars.inference.UtilityFunctions.and</a></div><div class="ttdeci">static float and(float...arr)</div><div class="ttdoc">A function where the output is conjunctively determined by the inputs. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d95/UtilityFunctions_8java_source.html#l00035">UtilityFunctions.java:35</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb_html_ac2cb3449a15125e5f0e4165aeee0befb"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb.html#ac2cb3449a15125e5f0e4165aeee0befb">nars.entity.BudgetValue.setPriority</a></div><div class="ttdeci">void setPriority(float v)</div><div class="ttdoc">Change priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00092">BudgetValue.java:92</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1UtilityFunctions_html"><div class="ttname"><a href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">nars.inference.UtilityFunctions</a></div><div class="ttdoc">Common functions on real numbers, mostly in [0,1]. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d95/UtilityFunctions_8java_source.html#l00028">UtilityFunctions.java:28</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2_html_a24093a77b49f21322e62c9bed7ff5ee2"><div class="ttname"><a href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2.html#a24093a77b49f21322e62c9bed7ff5ee2">nars.inference.UtilityFunctions.or</a></div><div class="ttdeci">static float or(float...arr)</div><div class="ttdoc">A function where the output is disjunctively determined by the inputs. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d95/UtilityFunctions_8java_source.html#l00048">UtilityFunctions.java:48</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214_html_a27f92b156f0a25520e38a489ec6fc214"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">nars.entity.BudgetValue.decPriority</a></div><div class="ttdeci">void decPriority(float v)</div><div class="ttdoc">Decrease priority value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00108">BudgetValue.java:108</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1UtilityFunctions_a7649e37bb61cac9b8a2601fdff3a5f7a_html_a7649e37bb61cac9b8a2601fdff3a5f7a"><div class="ttname"><a href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a7649e37bb61cac9b8a2601fdff3a5f7a.html#a7649e37bb61cac9b8a2601fdff3a5f7a">nars.inference.UtilityFunctions.aveGeo</a></div><div class="ttdeci">static float aveGeo(float...arr)</div><div class="ttdoc">A function where the output is the geometric average the inputs. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d95/UtilityFunctions_8java_source.html#l00074">UtilityFunctions.java:74</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_html"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">nars.inference.BudgetFunctions</a></div><div class="ttdoc">Budget functions for resources allocation. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00031">BudgetFunctions.java:31</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f_html_a4fdeae08389c60a4d89bc0b85a92848f"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f.html#a4fdeae08389c60a4d89bc0b85a92848f">nars.entity.BudgetValue.merge</a></div><div class="ttdeci">void merge(BudgetStruct that)</div><div class="ttdoc">Merge one BudgetValue into another. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00180">BudgetValue.java:180</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a317db5d38ca2192b6cf3fbdf1cf2f4b6_html_a317db5d38ca2192b6cf3fbdf1cf2f4b6"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a317db5d38ca2192b6cf3fbdf1cf2f4b6.html#a317db5d38ca2192b6cf3fbdf1cf2f4b6">nars.entity.BudgetValue.quality</a></div><div class="ttdeci">float quality</div><div class="ttdoc">The overall (context-independent) evaluation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00047">BudgetValue.java:47</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a42009f5202d1b120b098593f7b48dbad_html_a42009f5202d1b120b098593f7b48dbad"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a42009f5202d1b120b098593f7b48dbad.html#a42009f5202d1b120b098593f7b48dbad">nars.io.Symbols.BUDGET_VALUE_MARK</a></div><div class="ttdeci">static final char BUDGET_VALUE_MARK</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00038">Symbols.java:38</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a949b9dc84ec11f6d00dfb23f27599f85_html_a949b9dc84ec11f6d00dfb23f27599f85"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a949b9dc84ec11f6d00dfb23f27599f85.html#a949b9dc84ec11f6d00dfb23f27599f85">nars.entity.BudgetValue.BudgetValue</a></div><div class="ttdeci">BudgetValue(float p, float d, float q)</div><div class="ttdoc">Constructor with initialization. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00064">BudgetValue.java:64</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3_html_a1e7b6826531f03f792f3516ce0e97ac3"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3.html#a1e7b6826531f03f792f3516ce0e97ac3">nars.entity.BudgetValue.getPriority</a></div><div class="ttdeci">float getPriority()</div><div class="ttdoc">Get priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00084">BudgetValue.java:84</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a8225fd92c20794512e5fbbc3049a1052_html_a8225fd92c20794512e5fbbc3049a1052"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a8225fd92c20794512e5fbbc3049a1052.html#a8225fd92c20794512e5fbbc3049a1052">nars.entity.BudgetValue.durability</a></div><div class="ttdeci">float durability</div><div class="ttdoc">The percent of priority to be kept in a constant period; All priority values “decay” over time...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00045">BudgetValue.java:45</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_html"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">nars.entity.BudgetValue</a></div><div class="ttdoc">A triple of priority (current), durability (decay), and quality (long-term average). </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00031">BudgetValue.java:31</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_a64bec0b466ef31bc3150de23f0623309_html_a64bec0b466ef31bc3150de23f0623309"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a64bec0b466ef31bc3150de23f0623309.html#a64bec0b466ef31bc3150de23f0623309">nars.inference.BudgetFunctions.merge</a></div><div class="ttdeci">static void merge(BudgetValue baseValue, BudgetStruct adjustValue)</div><div class="ttdoc">Merge an item into another one in a bag, when the two are identical except in budget values...</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00232">BudgetFunctions.java:232</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a268fa1fabe6e71de9b9bb07bb5d506ee_html_a268fa1fabe6e71de9b9bb07bb5d506ee"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a268fa1fabe6e71de9b9bb07bb5d506ee.html#a268fa1fabe6e71de9b9bb07bb5d506ee">nars.entity.BudgetValue.BudgetValue</a></div><div class="ttdeci">BudgetValue(BudgetStruct v)</div><div class="ttdoc">Cloning constructor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00074">BudgetValue.java:74</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_c3c9ea9f52870ae82b0fae20af0d9479.html">entity</a></li><li class="navelem"><a class="el" href="../../d8/d59/BudgetValue_8java.html">BudgetValue.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
